#region referencias
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Collections.Generic;
using System.Collections;
#endregion

/// <summary>
/// clase de clientes
/// @author eespinoza
/// </summary>
namespace J2ME.RMS
{

/**
 * Clase para administrar la creacion de indices
 * @author eespinoza
 * @version 1.0 30/11/07
 */
public class RMSIndice : GestorRMS {

    public RMSIndice(String nombre) :
        base(nombre){
    }

    public void abrirIndice() {
        abrirRS();
    }
 
    //public void guardarIndice(byte[] arrByte){
    //      guardar(arrByte);
    //}

    public  void guardarIndice(String object1){

        DataOutputStream dataTemp = new DataOutputStream();

        dataTemp.writeString(object1);
        //createObjectBean().persistir(dataTemp, lista);

        data.writeInt(dataTemp.arrInt.Count);

        data.write(dataTemp.getArray());

        dataTemp.clear();

        dataTemp = null;
        //data.writeString(object1);
         

    }

    public void guardarIndice(long object1)
    {

        DataOutputStream dataTemp = new DataOutputStream();

        dataTemp.writeLong(object1);
        //createObjectBean().persistir(dataTemp, lista);

        data.writeInt(dataTemp.arrInt.Count);

        data.write(dataTemp.getArray());

        dataTemp.clear();

        dataTemp = null;
        //data.writeString(object1);


    }

    public void cerrarIndice(){
        cerrarRS();
    }

    protected override Persistente createObjectBean()
    {
        return null;
    }
}
}